if(ENABLE_MLALGO)
  list(APPEND objects
      LCAO_deepks.cpp
      deepks_basic.cpp
      deepks_check.cpp
      deepks_descriptor.cpp
      deepks_force.cpp
      deepks_fpre.cpp
      deepks_iterate.cpp
      deepks_spre.cpp
      deepks_orbital.cpp
      deepks_orbpre.cpp
      deepks_vdelta.cpp
      deepks_vdpre.cpp
      deepks_vdrpre.cpp
      deepks_pdm.cpp
      deepks_phialpha.cpp
      LCAO_deepks_io.cpp
      LCAO_deepks_interface.cpp
  )

  add_library(
      deepks
      OBJECT
      ${objects}
  )

  if(ENABLE_COVERAGE)
    add_coverage(deepks)
  endif()

# I will rewrite the test later, the current test rely on too many modules
  if(BUILD_TESTING)
      add_subdirectory(test)
  endif()
endif()

